﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DesignPattern.StructureType.Component
{
    public class File : AbstractFile
    {
        public File(string name) : base(name,FileType.File)
        {

        }
        public override void Show()
        {
            Console.WriteLine("Type=" + this.Type.ToString() + ";Name=" + this.Name);
        }

        public override void Click()
        {
            Console.WriteLine("Type=" + this.Type.ToString() + ";Name=" + this.Name);
        }
    }
}
